import { addDict, addDictArray } from '@knno/i18n';

export const DICT = addDictArray(['en,en-us', 'zh,zh-cn'], {
	ok: ['Ok', '确定'],
	cancel: ['Cancel', '取消'],
	inputError: ['Input is invalid!', '输入无效！'],
	uploading: ['Uploading...', '上传中...'],
	networkError: ['Network Error', '网络错误'],
	badRequest: ['Bad Request', '请求无效'],
	serverError: ['Server Error', '服务器错误'],
	noFiles: ['No files selected', '没有选择文件'],
	aborted: ['Operation aborted', '操作被取消'],
	error: ['Error: ', '错误：'],
	chooseDate: ['Choose Date', '选择日期'],
	chooseDateRange: ['Choose Date Range', '选择日期范围'],
	chooseTime: ['Choose Time', '选择时间'],
	chooseTimeRange: ['Choose Time Range', '选择时间范围'],
	from: ['From', '开始'],
	to: ['To', '截止'],
	notChoosen: ['Must make the choosen!', '必须做出选择！'],
	mergeCells: ['Merge Cells', '合并单元格'],
	undoMergeCells: ['Undo Merge Cells', '撤销合并单元格'],
	insertTable: ['Insert Table', '插入表格'],
	insertRowAbove: ['Insert Row Above', '上方插入行'],
	insertRowBelow: ['Insert Row Below', '下方插入行'],
	insertColumnLeft: ['Insert Column Left', '左侧插入列'],
	insertColumnRight: ['Insert Column Right', '右侧插入列'],
	deleteRow: ['Delete Table Row', '删除表格行'],
	deleteColumn: ['Delete Table Column', '删除表格列'],
	deleteTable: ['Delete Table', '删除表格'],
	insertImage: ['Insert Image', '插入图片'],
	rowCount: ['Row Count', '行数'],
	columnCount: ['Column Count', '列数'],
	invalidRowCount: ['Invalid row count!', '无效行数！'],
	invalidColumnCount: ['Invalid column count!', '无效列数！'],
	shouldBeBetween: ['Should be between: ', '应该介于：'],
	alignLeft: ['Align Left', '左对齐'],
	alignRight: ['Align Right', '右对齐'],
	alignCenter: ['Align Center', '居中对齐'],
	textBold: ['Bold', '粗体'],
	textItalic: ['Italic', '斜体'],
	textUnderline: ['Underline', '下划线'],
	default: ['Default', '默认'],
	fontSize: ['Font Size', '字号'],
	textColor: ['Text Color', '文字颜色'],
	backColor: ['Back Color', '背景颜色'],
	small: ['Small', '小'],
	verySmall: ['Very Small', '很小'],
	extremelySmall: ['Extremely Small', '非常小'],
	big: ['Big', '大'],
	veryBig: ['Very Big', '很大'],
	extremelyBig: ['Extremely Big', '非常大'],
	normal: ['Normal', '正常'],
});

const zh = {
	Su: '日',
	Mo: '一',
	Tu: '二',
	We: '三',
	Th: '四',
	Fr: '五',
	Sa: '六',
	Jan: '一月',
	Feb: '二月',
	Mar: '三月',
	Apr: '四月',
	May: '五月',
	Jun: '六月',
	Jul: '七月',
	Aug: '八月',
	Sep: '九月',
	Oct: '十月',
	Nov: '十一月',
	Dec: '十二月',
	'~': '至',
};
addDict('zh-cn', zh);
addDict('zh', zh);
